home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
8_5.lha
/
8_5
/
getc.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
302b
|
17 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ Read in a single character
/ inline
nt getc(FILE *f)
unsigned char c;
if ((f->mode == input) &&
f->in->get(c))
return c;
else
return EOF;